package com.css.common.core.exception;

import lombok.Getter;

/**
 * 系统异常
 *
 * @author gaohongliang
 * @version 1.0
 */
public class SysException extends Exception {
    @Getter
    private String code;

    @Getter
    private String[] params;

    public SysException(String code) {
        super(code);
        this.code = code;
    }

    public SysException(String code, String... params) {
        super(code);
        this.code = code;
        this.params = params;
    }
}
